﻿using System;
using System.Collections.Generic;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using NP.BPMReportPlatform.Entities.BPM_Business;
using OfficeOpenXml.Table;
using SqlSugar;

namespace NP.BPMReportPlatform.UserTrial.Dto
{
    [ExcelExporter(Name = "报表数据", TableStyle = TableStyles.Light10, AutoFitAllColumn = true)]
    public class GetTrainOverSeaOutput
    {
        /// <summary>
        /// 培训年月
        /// </summary>
        [IEIgnore]
        public string CourseTrainId { get; set; }

        /// <summary>
        /// 流程号
        /// </summary>
        [ExporterHeader(DisplayName = "流程号")]
        public string InstanceNumber { get; set; }

        /// <summary>
        /// 培训编码
        /// </summary>
        [ExporterHeader(DisplayName = "培训编码")]
        public string CourseTrainCode { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [ExporterHeader(DisplayName = "培训状态")]
        public string StatusName { get; set; }

        /// <summary>
        /// 经办人姓名
        /// </summary>
        [ExporterHeader(DisplayName = "经办人姓名")]
        public string CreateUserName { get; set; }

        /// <summary>
        /// 经办人工号
        /// </summary>
        [ExporterHeader(DisplayName = "经办人工号")]
        public string CreateUserWorkNumber { get; set; }

        /// <summary>
        /// 拟派遣者工号
        /// </summary>
        [ExporterHeader(DisplayName = "拟派遣者工号")]
        public string DispatchWorkNumber { get; set; }

        /// <summary>
        /// 拟派遣者姓名
        /// </summary>
        [ExporterHeader(DisplayName = "拟派遣者姓名")]
        public string DispatchUserName { get; set; }

        /// <summary>
        /// 调整流程号
        /// </summary>
        [ExporterHeader(DisplayName = "调整流程号")]
        public string ChangeInstanceNumber { get; set; }

        /// <summary>
        /// 培训地点
        /// </summary>
        [ExporterHeader(DisplayName = "培训地点")]
        public string CourseAddress { get; set; }

        /// <summary>
        /// 费用合计
        /// </summary>
        [ExporterHeader(DisplayName = "费用合计")]
        public decimal? TotalCost { get; set; }

        /// <summary>
        /// 护照号码
        /// </summary>
        [IEIgnore]
        public string PassprotNumber { get; set; }

        /// <summary>
        /// 心得/总结数据
        /// </summary>
        [IEIgnore]
        //public Dictionary<int, CourseSummaryEntity> SummarData { get; set; } = new Dictionary<int, CourseSummaryEntity>();
        public CourseSummaryEntity SummarData { get; set; }
    }
}